import {NEWPWD, CHECKCODE, CHECKPHONE, HIDDENSEARCH, CHECKACCOUNT, SHOPHIDE, UNRECEIVED, LEVELINFOOBJ, ACTIVITYID, PREVIOUSKEY, SHOPBACKSHOW, BANNERLIST, BRANDID, ACTIVESTATUS} from './mutations-types'

export default{
  [NEWPWD] () {},
  [CHECKCODE] () {},
  [CHECKPHONE] () {},
  [CHECKACCOUNT] () {},
  [HIDDENSEARCH] (state, value) {
    if (value) {
      state.hiddenSearch = value
    } else {
      state.hiddenSearch = false
    }
  },
  [SHOPHIDE] (state, value) {
    if (value) {
      state.shopcartHide = value
    } else {
      state.shopcartHide = false
    }
  },
  [SHOPBACKSHOW] (state, value) {
    state.shopcartback = value
  },
  [UNRECEIVED] (state, value) {
    state.unreceived = value
  },
  [LEVELINFOOBJ] (state, value) {
    state.levelInfoObj = value
    state.levelVOS = value.levelVOS
  },
  [ACTIVITYID] (state, value) {
    state.activityId = value
  },
  [PREVIOUSKEY] (state, value) {
    state.previouskey = value
  },
  [BANNERLIST] (state, list) {
    state.bannerlist = list
  },
  [BRANDID] (state, id) {
    state.brandId = id
  },
  [ACTIVESTATUS] (state, status) {
    state.activeStatus = status
  }

}
